package sqlsession;

import config.Configuration;

/**
 * @CreatedBy richInfo AI
 * @ClassName DefaultSqlSessionFactory
 * @Date 2021/8/16 2:18 下午
 * @Author xin.yang
 * @Description TODO
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory
{
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration)
    {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSqlSession()
    {
        return new DefaultSqlSession(configuration);
    }
}
